minusTime

  • function
 

Subtracts time from the current stat.

viewmodel.minusTime(time)

Subtracts time from the current stat.

Parameters

  1. time {Number}

    How much to decrement the time by.

Use in a template like:

<div class="col-xs-6">
  <a class="btn btn-default" ($click)="minusTime(10)">-10 s</a>
  <a class="btn btn-default" ($click)="minusTime(2)">-2 s</a>
  <a class="btn btn-default" ($click)="addTime(2)">+2 s</a>
  <a class="btn btn-default" ($click)="addTime(10)">+10 s</a>
</div>